body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

* {
  box-sizing: border-box;
}

.ant-layout {
  min-height: 100vh;
}

.page-header {
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.page-content {
  padding: 24px;
  background: #f5f5f5;
  min-height: calc(100vh - 64px - 70px);
}

.card-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-form {
  margin-bottom: 24px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .page-content {
    padding: 16px;
  }
  
  .table-actions {
    flex-direction: column;
  }
}

/* AI对话样式 */
.ai-chat-container {
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
  margin-bottom: 16px;
}

.ai-chat-input-area {
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.message-bubble {
  max-width: 80%;
  word-break: break-word;
  margin-bottom: 12px;
}

.message-user {
  margin-left: auto;
  text-align: right;
}

.message-ai {
  margin-right: auto;
  text-align: left;
}
